home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
SOUND
/
SNDSGOOD.ARJ
/
C_EXMPL1.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-06
|
474b
|
35 lines
#include <stdio.h>
#include <malloc.h>
#include "sg_c.h"
FILE *fp;
char far *buffer;
char far *holder;
char readbuffer[200];
main()
{
int i;
buffer = (char far *) malloc( 2000 );
fp = fopen( "SND1.SND", "rb" );
fread( readbuffer, filelength( fileno( fp ) ), 1, fp );
fclose( fp );
holder = buffer;
for( i=0; i<119; i++ ) *holder++ = readbuffer[i];
installit();
dosound( buffer );
while( eventsleft() );
removeit();
}